'\" t
.\"     Title: 
    generate
  
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 12/19/2013
.\"    Manual: 
.\"    Source: 
.\"  Language: English
.\"
.TH "GENERATE" "1" "12/19/2013" ""
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"

    generate
   \- random sentence generator from a grammar
.SH "SYNOPSIS"
.HP \w'\fBgenerate\fR\ 'u
\fBgenerate\fR [\-v] [\-t] [\-n\ \fInum\fR] [\-s\ \fIspname\fR] {prefix}
.SH "DESCRIPTION"
.PP
This small program randomly generates sentences that are acceptable by the given grammar\&.
.PP

\&.dfa,
\&.dict
and
\&.term
files are needed to execute\&. They can be generated from
\&.grammar
and
\&.voca
file by
\fBmkdfa\&.pl\fR\&.
.SH "OPTIONS"
.PP
\fB \-t \fR
.RS 4
Output in word\*(Aqs category name\&.
.RE
.PP
\fB \-n \fR \fInum\fR
.RS 4
Set number of sentences to be generated (default: 10)
.RE
.PP
\fB \-s \fR \fIspname\fR
.RS 4
the name string of short\-pause word to be supressed (default: "sp")
.RE
.PP
\fB \-v \fR
.RS 4
Debug output mode\&.
.RE
.SH "EXAMPLES"
.PP
Exmple output of a sample grammar "fruit":
.sp
.if n \{\
.RS 4
.\}
.nf
% \fBgenerate\fR fruit
Stat: init_voca: read 36 words
Reading in term file (optional)\&.\&.\&.done
15 categories, 36 words
DFA has 26 nodes and 42 arcs
\-\-\-\-\-
 <s> I WANT ONE APPLE </s>
 <s> I WANT TEN PEARS </s>
 <s> CAN I HAVE A PINEAPPLE </s>
 <s> I WANT ONE PEAR </s>
 <s> COULD I HAVE A BANANA </s>
 <s> I WANT ONE APPLE PLEASE </s>
 <s> I WANT NINE APPLES </s>
 <s> NINE APPLES </s>
 <s> I WANT ONE PINEAPPLE </s>
 <s> I WANT A PEAR </s>
.fi
.if n \{\
.RE
.\}
.sp
.SH "SEE ALSO"
.PP

\fB mkdfa.pl \fR( 1 )
,
\fB generate-ngram \fR( 1 )
.SH "COPYRIGHT"
.PP
Copyright (c) 1991\-2013 Kawahara Lab\&., Kyoto University
.PP
Copyright (c) 1997\-2000 Information\-technology Promotion Agency, Japan
.PP
Copyright (c) 2000\-2005 Shikano Lab\&., Nara Institute of Science and Technology
.PP
Copyright (c) 2005\-2013 Julius project team, Nagoya Institute of Technology
.SH "LICENSE"
.PP
The same as Julius\&.
